home *** CD-ROM | disk | FTP | other *** search
- -----------------------------------------------------------------------
-
- SD - MS-DOS Sorted Directory Utility Program
-
- SD.COM V4.2 (c) by John Stetson 12-Aug-84
-
- This program is in the public domain
-
- -----------------------------------------------------------------------
-
- This is a sorted directory utility program which operates
- under the Microsoft Disk Operating System Version 1.X or 2.X.
-
- There are two different versions of the program tailored
- for either the Zenith Z-100 or IBM-PC compatible computers.
-
- SD provides more information than the MS-DOS resident DIR
- command about the files on a disk, and allows the user to
- format and sort the information in a variety of ways.
-
- 1) Command line syntax:
-
- sd [dev:][path][fspec] /b/d/e/n /c/q/r/s /l/t/v/x
-
- The disk device [dev:] may be any valid drive name.
-
- [path] may not be used when operating under MS-DOS 1.X.
-
- The file specification [fspec] may be ambiguous (*,?).
- A file spec of *. will display all subdirectory names.
-
- The default output format is two columns sorted
- vertically by file name and extension.
-
- 2) Description of switches:
-
- /b - sort file entries by file sizes in bytes
- /d - sort file entries by modification date & time
- /e - sort file entries by file name extension
- /n - display entries in directory order (no sort)
-
- /c - clear console screen before displaying output
- /q - quick output (no pauses between pages)
- /r - produce output suitable for redirection
- /s - include system and hidden files in output
-
- /l - long output format (with file attributes)
- /t - display the totals output line only
- /v - display volume and directory name info
- /x - display the command line syntax summary
-
- 3) Examples of use:
-
- A>sd
-
- Display the current directory of drive A.
-
- B>sd/d
-
- Display the current directory of drive B, sorted by date and time.
-
- C>sd b:/t
-
- Display only the directory totals information for the current
- directory of drive B:
-
- A>sd *.asm
-
- Display all files having an extension of "asm" in the current
- directory of drive A.
-
- B>sd temp.*/r >c:temp.dir
-
- Select all files having a name of "temp" in the current directory
- of drive B and redirect the console output to file "c:temp.dir".
-
- C>sd \
-
- Display all files in the root directory of drive C.
-
- A>sd ..
-
- Display all files in the parent directory of the current
- directory of drive A.
-
- B>sd ..\*.a?m/d
-
- Display all files in the parent directory of the current
- directory of drive B whose extensions begin with "a" and
- end with "m" and sort the output by date and time.
-
- C>sd b:\dir1\dir2\dir3\*.doc/d/r/l/v >doc.dir
-
- Select all files having an extension of "doc" in the directory
- "\dir1\dir2\dir3" of drive B. Sort the output by date and time.
- Use the long output format with one entry per line and display
- the file attributes. Include volume and directory information.
- Redirect the console output to the file "doc.dir" in the current
- directory of drive C.
-
- A>sd b:/r (^P)
- (console output is duplicated on the printer)
- A> (^N)
-
- Display the current directory of drive B and duplicate the
- console output on the printer.
-
- 4) General description:
-
- If /q is not specified, output is paused every 24 lines.
- Console output may be paused by typing any character
- and is restarted when another character is typed.
- Typing Control-C will cause the program to terminate.
-
- If it is desired to redirect console output to a file
- or to the printer, the /r switch must be specified to
- tell the command to use the MS-DOS console output function.
- SD uses BIOS console routines, as a default, for efficiency.
-
- If the /l switch is specified, the following file
- attributes are displayed at the end of each line:
-
- A - Archive S - System H - Hidden R - Read Only
-
- Disk space used and free are displayed to the nearest byte,
- and are not rounded up to the next disk allocation unit.
-
- The /v switch causes the volume label (if it exists),
- volume creation date and time, and the target directory
- name to be displayed.
-
- Specifying an invalid switch such as /h or /x will result
- in the command line syntax summary being displayed.
-
- -----------------------------------------------------------------------
-